package com.zyl.blog.service;

import com.zyl.blog.pojo.Tag;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author 14323
 * @date 2020/8/8 19:45
 */
public interface TagService {

    Tag saveTag(Tag tag);

    void deleteTag(Long id);

    Tag updateTag(Long id, Tag tag);

    Tag getTag(Long id);

    Tag getTagByName(String name);

    Page<Tag> getTagPage(Pageable pageable);

    List<Tag> getAllTags();

    List<Tag> getAllTagsSortByBlogNumbers();

    List<Tag> getTopTag(Integer size);

    List<Tag> listTag(String ids);
}
